﻿<%@ control language="VB" autoeventwireup="false" inherits="controls_BuscadorClientes, App_Web_vfbk0y9u" %>

<div align="center">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <br />
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
<table style="width: 640px">
    <tr>
        <td style="width: 100%" align="left">
            <asp:Label ID="lblBuscarClientes" runat="server" Text="Busqueda de remitentes" Font-Bold="True"></asp:Label></td>
    </tr>
    <tr>
        <td style="width: 100%; height: 25px;">
		<TABLE id="TableOpts" cellSpacing="0" cellPadding="0" width="100%" background="Img/top_nav_back.jpg">
			<TR>
				<TD class="NormalBold" style="width: 150px" align="right" height="25"><NOBR><font color="white">
                    <asp:Label ID="lblB1" runat="server" Text="Busqueda de clientes por: " ForeColor="White"></asp:Label></font></NOBR></TD>
				<TD align="left" width="150">
						<asp:DropDownList id="TipoBusqueda" Width="100%" runat="server" CssClass="smalltextbox" AutoPostBack="True" OnSelectedIndexChanged="TipoBusqueda_SelectedIndexChanged">
                            <asp:ListItem Selected="True" Value="1">Documento</asp:ListItem>
                            <asp:ListItem Value="2">Codigo</asp:ListItem>
                            <asp:ListItem Value="3">Nombres</asp:ListItem>
                            <asp:ListItem Value="4">Telefono</asp:ListItem>
                        </asp:DropDownList>
				</TD>
                <td align="right" width="90" id="tdB1" runat="server" class="BusquedaClientes">
                        <asp:Label ID="lblB2" runat="server" Text="Nombre:" ForeColor="White"></asp:Label>&nbsp;</td>
                <td align="center" width="90" id="tdB2" runat="server">
                    <asp:TextBox ID="txtNombre" runat="server" CssClass="smalltextbox" Width="90" AutoCompleteType="Disabled"></asp:TextBox></td>
                <td align="right" width="90" id="tdB3" runat="server" class="BusquedaClientes">
                    <asp:Label ID="lblB3" runat="server" Text="Documento:" ForeColor="White"></asp:Label>&nbsp;</td>
				<TD align="center" width="90"><NOBR>
						<asp:TextBox id="txtBuscar" runat="server" CssClass="smalltextbox" Width="90" AutoCompleteType="Disabled"></asp:TextBox>
						</NOBR></TD>
				<TD width="1%"><IMG height=1 src='<%= Page.ResolveUrl("~/img/spacer.gif")%>' width=1 border=0>
				</TD>
				<TD align="right">
					<asp:Button id="btnBuscar" runat="server" Width="50" Text="Buscar" OnClick="btnBuscar_Click" CssClass="Butt"></asp:Button></TD>
				<TD noWrap align="right" width="13"><NOBR><IMG height=1 
      src='<%= Page.ResolveUrl("~/img/spacer.gif")%>' width=8 border=0><A onclick="displayHelpText('ayudasearch'); return false;" href=""><IMG id="ayudaItem" height="16" alt="Ayuda rapida sobre esta sección" src="~/img/i_help_bl_16.gif" width="16"
								border="0" runat="server"></A><IMG height=1 
      src='<%= Page.ResolveUrl("~/img/spacer.gif")%>' width=4 border=0></NOBR>
				</TD>
			</TR>
			<TR id="rowError" runat="server">
				<TD align="center" colSpan="9">
				</TD>
			</TR>
		</TABLE>
        </td>
    </tr>
<tr><td>
            <table style="width: 100%" background="Img/top_nav_back.jpg" id="tblInfo" runat="server" visible="false">
                <tr>
                    <td align="left">
                        <asp:Label ID="lblClientesEncontrados" runat="server" Text="X Clientes encontrados" Font-Bold="true" ForeColor="White"></asp:Label></td>
                    <td align="right">
                        <asp:Button ID="cmdNuevoCliente" runat="server" Text="Nuevo Cliente" CssClass="Butt" OnClick="cmdNuevoCliente_Click"/></td>
                </tr>
            </table>
</td></tr>

    <tr>
        <td style="width: 100%">
            <asp:GridView ID="Gv" runat="server" AutoGenerateColumns="False" CellPadding="2" ForeColor="#333333" GridLines="None" Width="640px">
                <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <Columns>
                    <asp:TemplateField HeaderText="Codigo">
                        <ItemTemplate>
                            <asp:LinkButton ID="LinkButton1" runat="server" Text='<%# bind("CliNumero") %>' CommandArgument='<%# bind("CliNumero") %>'></asp:LinkButton>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="CliNombre" HeaderText="Nombre" >
                        <ItemStyle HorizontalAlign="Left" />
                        <HeaderStyle HorizontalAlign="Left" />
                    </asp:BoundField>
                    <asp:BoundField DataField="CliApellidos" HeaderText="Apellidos" >
                        <ItemStyle HorizontalAlign="Left" />
                        <HeaderStyle HorizontalAlign="Left" />
                    </asp:BoundField>
                    <asp:BoundField DataField="CliDNI" HeaderText="Documento" >
                        <ItemStyle HorizontalAlign="Right" />
                        <HeaderStyle HorizontalAlign="Right" />
                    </asp:BoundField>
                    <asp:BoundField DataField="CliCiudad" HeaderText="Ciudad" >
                        <ItemStyle HorizontalAlign="Left" />
                        <HeaderStyle HorizontalAlign="Right" />
                    </asp:BoundField>
                    <asp:BoundField DataField="CliProvincia" HeaderText="Provincia" >
                        <ItemStyle HorizontalAlign="Left" />
                    </asp:BoundField>
                </Columns>
                <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                <EditRowStyle BackColor="#999999" />
                <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" CssClass="HeadGV" />
                <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
            </asp:GridView>
        </td>
    </tr>
    <tr>
        <td style="width: 100%" align="center">
            <asp:Label ID="lblError" runat="server" BackColor="Red" Font-Bold="True" ForeColor="White"></asp:Label></td>
    </tr>
</table>
    </ContentTemplate>
</asp:UpdatePanel>
    &nbsp;&nbsp;
    <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel1" DisplayAfter="100">
        <ProgressTemplate>
            <img src="img/ProgressBar3.gif" />
        </ProgressTemplate>
    </asp:UpdateProgress>
</div>
